import {
	get,
	post
} from '../utils/request.js';

// 获取药品接口
export const getMedicineList = (data) => {
	return post('/drugs/portal/select_drug_infoList', data);
};

// 获取字典接口
export const getSysDict = (params) => {
	return get('/dict/getSysDict', params);
};

// 获取诊断接口
export const getDiagList = (data) => {
	return post('/opm/diag/get_diag_List', data);
};

// 批量更新药品接口
export const batchSaveRecipeDetailTemp = (data) => {
	return post('/opm/recipeDetail/batchSaveRecipeDetailTemp', data);
};

// 批量添加诊断
export const addWesternDiagList = (data) => {
	return post('/opm/diag/add_western_diag_list', data);
};

// 提交并生成病历
export const tranRecipeDetailPdf = (data) => {
	return post('/opm/recipeDetail/tranRecipeDetailPdf', data);
};

// 查询处方
export const queryRecipeList = (data) => {
	return post('/opm/recipeDetail/queryRecipeList', data);
};

// 删除处方
export const delRecipeDetailTemp = (data) => {
	return post('/opm/recipeDetail/delRecipeDetailTemp', data);
};

// 获取西药诊断
export const getWesternDiagList = (data) => {
	return post('/opm/diag/get_western_diag_list', data);
};
